<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Welcome to <%= title %></title>

    <!-- Bootstrap Core CSS -->
    <link href="/stylesheets/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/stylesheets/metisMenu.min.css" rel="stylesheet">


    <!-- Custom CSS -->
    <link href="/stylesheets/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/stylesheets/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" href="/stylesheets/style.css">

    <link rel="stylesheet" href="/stylesheets/admin/style.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

<div id="wrapper">

    <!-- Navigation -->
    <!-- Navigation -->
    <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">

        <%- include('public_header') -%>
        <%- include('public_sidebar') -%>
    </nav>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header admin-position">添加网址<a href="/admin/site" class="btn btn-primary btn-sm">返回列表</a></h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="row">
                    <form role="form" method="post" action="/admin/site/add" >
                        <div class="col-lg-6">
                            <div class="form-group">
                                <label>网址名称</label>
                                <input class="form-control" name="name">
                                <p class="help-block"></p>
                            </div>
                            <div class="form-group">
                                <label>URL</label>
                                <input class="form-control" name="url">
                                <p class="help-block"></p>
                            </div>
                            <div class="form-group">
                                <label for="disabledSelect">网址分类</label>
                                <select id="disabledSelect" class="form-control" name="type_id">
                                    <% type_list.forEach(function(site){ %>
                                        <option value="<%= site._id %>"><%= site.name %></option>
                                    <% }) %>
                                </select>
                            </div>
                            <div class="form-group">
                                <label>排序</label>
                                <input class="form-control" name="order_sort" value="10">
                                <p class="help-block"></p>
                            </div>
                            <div class="form-group">
                                <label>标签</label>
                                <input class="form-control" name="tags" placeholder="用英文,分隔开">
                                <p class="help-block"></p>
                            </div>
                            <div class="form-group">
                                <label>描述</label>
                                <textarea class="form-control" name="description" rows="10"></textarea>
                            </div>
                            <button type="submit" class="btn btn-primary">保存</button>
                            <button type="reset" class="btn btn-default">取消</button>
                        </div>
                    </form>
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
    </div>
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<!-- jQuery -->
<script src="/javascripts/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/javascripts/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="/javascripts/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/javascripts/sb-admin-2.js"></script>

</body>

</html>
